package com.procurement.bidding.controller;

import com.procurement.bidding.service.PcmSupplierService;
import com.ruoyi.common.core.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.core.web.controller.BaseController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/supplier")
public class PcmSupplierController extends BaseController{

    @Autowired
    private PcmSupplierService pss;

    @GetMapping("/showAllSupplier")
    public TableDataInfo showAllSupplier(@RequestParam Map<String, Object> map) {
        startPage();
        List<Map<String, Object>> mapList = pss.showAllSupplier(map);
        return getDataTable(mapList);
    }
}
